package IOExercise;

//public class t1 {
//}
public enum t1 {
    RED,BLACK,GREEN,WHITE;
    public static void main(String[] args) {
        t1[] testEnum2 = t1.values();
        for (int i = 0; i < testEnum2.length; i++) {
            System.out.println(testEnum2[i] + " " + testEnum2[i].ordinal());
        }
        System.out.println("=========================");
        System.out.println(t1.valueOf("GREEN"));
    }
}